# Automatically generated Makefile for project: sdl_basics
# Created on  by gaten for sdltutorials.com
# Comments, suggestions and bugs email: gaten DOT net AT gmail DOT com

#MICRO DEFINITION FOR CORE LIBRARY BEGIN
ifndef CORE_PATH
        CORE_PATH=/home/sunny/Workspace/core-2.1.1
endif

include $(CORE_PATH)/Make.config

CORE_INC=-I. -I$(CORE_PATH)/inc -I$(CORE_PATH)/mpfr/include \
         -I$(CORE_PATH)/gmp/include
CORE_LIB=-L$(CORE_PATH)/lib -L$(CORE_PATH)/mpfr/lib -L$(CORE_PATH)/gmp/lib \
         -lcore++$(VAR) -lmpfr -lgmp

COREX_LIB_LEVEL=-lcoreex++$(VAR)_level

COREX_LIB_LEVEL3=-lcorex++$(VAR)_level3
COREX_LIB_LEVEL2=-lcorex++$(VAR)_level2
COREX_LIB_LEVEL1=-lcorex++$(VAR)_level1

#MICRO DEFINITION FOR CORE LIBRARY END

# Compiler
CC=g++



# Compiler flags
CPPFLAGS=-Wall -g `sdl-config --cflags` -I../../xmesh -I../sdlui $(CORE_INC) -Wno-deprecated -g

# Linker flags
LDFLAGS=`sdl-config --libs` -lSDL -lSDL_image -lGL -lGLU -lglut $(CORE_LIB) -lcppunit

target : test_main pre

test_main : test_main.o 
	$(CC) test_main.o $(LDFLAGS) -o test_main

pre : pre.o
	$(CC) pre.o $(LDFLAGS) -o pre

test_main.o : test_main.cpp ut_predicate.h ut_intersect.h
	$(CC) $(CPPFLAGS) -c test_main.cpp

pre.o : pre.cpp 
	$(CC) $(CPPFLAGS) -c pre.cpp 

# cleanup
clean:
	rm -rf *.o

# EOF

